﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ZK.CoalYardTransManage.Test
{
    public partial class FormOne : Form
    {
        public  delegate void DeleOne(string str);
        public static event DeleOne EvenDeleOne;
        public FormOne()
        {
            InitializeComponent();
          
        }
        /// <summary>
        /// 键盘按下释放事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void TextBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
            //MessageBox.Show(textBox1.Text);
            EvenDeleOne?.Invoke(textBox1.Text);

        }

        private void Button1_Click(object sender, EventArgs e)
        {
            FormTwo formTwo = new FormTwo();
            formTwo.Show();
        }
    }
}
